package cn.gson.springboot.model.mapper;

import java.math.BigDecimal;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.alibaba.fastjson.JSONArray;

import cn.gson.springboot.model.pojos.ChargeMoney;

@Mapper
public interface ChargeMoneyMapper {
      //收费主表新增
	public void addchargemoney(@Param("lookillness_id") Integer lookillness_id,
															 @Param("chargemoney_name") String chargemoney_name,
															 @Param("chargemoney_allmoney") BigDecimal chargemoney_allmoney,
															 @Param("chargemoney_type") Integer chargemoney_type,
															 @Param("chargemoney_people") String chargemoney_people);
	
	//修改医嘱收费状态
	public void  updateDocMoneytype(@Param("docmoneytype") Integer docmoneytype,
																		@Param("docadviceid") Integer docadviceid);
	
	//修改医疗项目收费状态
	public void updateHosProjectMoneytype (@Param("hosplookstate") Integer hosplookstate,
																					  @Param("hosplookid") Integer hosplookid);
	//修改体检收费状态 
	public void updateHealthmoneyType (@Param("hmoneytype") Integer hmoneytype,
			  															     @Param("healthno") Integer healthno);
	
	public JSONArray  selectChargeMoneyid(@Param("cmtype") Integer cmtype,
			 																	   @Param("lookid") Integer lookid);
	
	public JSONArray selectMoney(@Param("lid") Integer lookid);
	
	//查出未收费人的信息
	public JSONArray  selectNoChargePeople();
	
	//自主体检查出收费主表id
	public JSONArray selectSelfByid();
	
	//修改自主体检收费状态(预约表收费状态)
	public void updateHealthAppnoMoneytype(@Param("appostatus") Integer appostatus,@Param("appo_no") Integer appo_no);
	
	//自主体检收费项目显示
	public JSONArray selectSelfMoney(@Param("ccardid") String ccardid);
	
	//根据看诊号与收费名称查询到收费主表id
	public JSONArray selectCMoneyid(@Param("cname") String  cname,@Param("lookid") Integer lookid);
	
	// 自主体检收费主表id 
	public JSONArray selectCMoneyidSelf(@Param("chargemoney_name") String  chargemoney_name,@Param("appo_no") Integer appo_no);
			
}
